Skip to content

Speed up the deploy workflow - #44

Merged
Kinflou merged 1 commit into
masterfrom
ci/faster-deploy
Sep 3, 2026
Merged

Speed up the deploy workflow#44
Kinflou merged 1 commit into
masterfrom
ci/faster-deploy

Conversation

@Kinflou

@Kinflou Kinflou commented Sep 3, 2026

Copy link
Copy Markdown
Member

Step timings from a recent run:

step time
Install (yarn install) 134s
Build editor WASM 71s
Rust toolchain 11s
everything else <10s

Install — 134s → ~10s

Yarn re-cloned comline-simulator and re-ran its prepack (a full Rust →
wasm-bindgenwasm-opt build, lean + scripted) on every run. Yarn
Berry's global cache (~/.yarn/berry/cache) already stores the built
archive, so caching that folder makes yarn install restore it and skip
the build. It only re-runs when app/yarn.lock changes — i.e. when we bump
the sim SHA.

Smaller

  • rustup update stable && rustup default stable → just
    rustup target add wasm32-unknown-unknown (the runner's stable is
    current). ~9s.
  • restore-keys on the cargo cache so a near-miss still helps.
  • concurrency.group is now per-ref — a push to any branch was cancelling
    every other run (hence the string of "cancelled" runs lately).
  • Skip upload-pages-artifact on PRs (only deploy uses it, and deploy
    already skips PRs).

First run after merge still populates the yarn cache; subsequent PRs should
land around ~1.5–2 min, with Build editor WASM then the long pole
(Swatinem/rust-cache for the wasm/ crate is a possible follow-up).

The `Install` step was ~134s every run because Yarn re-cloned and re-ran
`comline-simulator`'s `prepack` (a full Rust → wasm build). Yarn Berry's
global cache (`~/.yarn/berry/cache`) already holds the *built* archive, so
caching that folder lets `yarn install` skip the build unless `app/yarn.lock`
changes (a sim bump) — ~134s → ~10s on a hit.

Also: drop `rustup update stable` (the runner's is current), add
`restore-keys` to the cargo cache, scope `concurrency` per-ref so PR runs
stop cancelling each other, and skip the Pages artifact upload on PRs.
@Kinflou
Kinflou merged commit 4b70670 into master Sep 3, 2026
2 checks passed
@Kinflou
Kinflou deleted the ci/faster-deploy branch September 3, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant